module.exports = Behavior({
  properties: {},
  options: {},
  data: { canIUseGetUserProfile: !1 },
  pageLifetimes: {
    show: function () {
      this.judgeLoginWay();
    },
  },
  created: function () {},
  attached: function () {
    this.judgeLoginWay();
  },
  ready: function () {},
  methods: {
    judgeLoginWay: function (e) {
      wx.getUserProfile && this.setData({ canIUseGetUserProfile: !0 });
    },
    _getUserProfile: function (e) {
      var t = this;
      wx.getUserProfile({
        desc: '用于完善会员资料',
        success: function (e) {
          console.log('_getUserProfile: ', e), t._getUserInfo({ detail: e });
        },
      });
    },
  },
});
